package com.zzh.rabbit;

import android.app.Application;
import android.util.Log;

import com.zzh.mvvm.binding.BindingConsumer;
import com.zzh.mvvm.binding.command.BindingCommand;
import com.zzh.rabbit.demo.base.ds.DataSourceRepo;
import com.zzh.rabbit.demo.base.vm.BaseViewModel;

import java.util.Arrays;

import androidx.annotation.NonNull;

/**
 * Created by ZZH on 2022/6/2.
 *
 * @Date: 2022/6/2
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description:
 */
public class TwoViewModel extends BaseViewModel {
    public TwoViewModel(Application application) {
        super(application);
    }

    public TwoViewModel(@NonNull Application application, DataSourceRepo model) {
        super(application, model);
    }

    public BindingCommand onTextChanagedCommond = new BindingCommand(new BindingConsumer() {
        @Override
        public void call(Object o) {
            if (o != null) {
                Log.e("tag", Arrays.toString((Object[]) o));
            } else {
                Log.e("tag", "参数为空");
            }
        }
    });
}
